package com.yeyks.websocket;

import com.aliyun.oss.common.comm.ResponseMessage;
import com.yeyks.model.Ajax.AjaxResponseBody;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

//@Controller
public class WsController {
    @MessageMapping("/entry1")
    @SendTo("/broker/")
    public String entry1(Object request) {
        return "response.";
    }

    @GetMapping("/ws")
    public String index() { return "ws"; }
}
